package com.andreas.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @Author andreaszhou
 * @ClassName Book
 * @Description TODO
 * @date 2021/1/19 19:39
 * @Version 1.0
 */
@TableName("book")
public class Book {
    @TableId(type = IdType.AUTO)
    @TableField("book_id")
    private int bookId;
    @TableField("book_name")
    private String bookName;
    @TableField("sub_title")
    private String subTitle;
    @TableField("author")
    private String author;
    @TableField("cover")
    private String cover;
    @TableField("description")
    private String description;
    @TableField("category_id")
    private String categoryId;
    @TableField("evaluation_score")
    private int evaluationScore;
    @TableField("evaluation_quantity")
    private int evaluationQuantity;

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public int getEvaluationScore() {
        return evaluationScore;
    }

    public void setEvaluationScore(int evaluationScore) {
        this.evaluationScore = evaluationScore;
    }

    public int getEvaluationQuantity() {
        return evaluationQuantity;
    }

    public void setEvaluationQuantity(int evaluationQuantity) {
        this.evaluationQuantity = evaluationQuantity;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bookId=" + bookId +
                ", bookName='" + bookName + '\'' +
                ", subTitle='" + subTitle + '\'' +
                ", author='" + author + '\'' +
                ", cover='" + cover + '\'' +
                ", description='" + description + '\'' +
                ", categoryId='" + categoryId + '\'' +
                ", evaluationScore='" + evaluationScore + '\'' +
                ", evaluationQuantity='" + evaluationQuantity + '\'' +
                '}';
    }
}
